import request from '@/utils/request'

// 查询报警信息记录列表
export function listWarnRecord(query) {
  return request({
    url: '/business/warnRecord/list',
    method: 'get',
    params: query
  })
}

// 查询报警信息记录详细
export function getWarnRecord(warnId) {
  return request({
    url: '/business/warnRecord/' + warnId,
    method: 'get'
  })
}

// 新增报警信息记录
export function addWarnRecord(data) {
  return request({
    url: '/business/warnRecord',
    method: 'post',
    data: data
  })
}

// 修改报警信息记录
export function updateWarnRecord(data) {
  return request({
    url: '/business/warnRecord',
    method: 'put',
    data: data
  })
}

// 删除报警信息记录
export function delWarnRecord(warnId) {
  return request({
    url: '/business/warnRecord/' + warnId,
    method: 'delete'
  })
}
